package com.example.springbootredis.service;

import com.example.springbootredis.entity.ApiAccount;
import org.springframework.stereotype.Service;

/**
 * api account服务层
 */
@Service
public interface ApiAccountService {
    //注册
    int addApiAccount(ApiAccount apiAccount);
    //根据账号查询
    ApiAccount findByAccount(String account);
    //根据手机号查询
    ApiAccount findByPhone(String phone);
}